#include <iostream>
#include <string>
#include <bitset>
using namespace std;
int main(){
	bitset<9> myset(string("111100000"));
	cout << "myset has " << int(myset.count()) << " ones,";
	cout << "and " << int(myset.size() - myset.count())
		<< " zeros.\n";
	return 0;
}
